<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <script type="text/javascript" src="../script/jquery-3.6.0.min.js" charset="UTF-8"></script>
  <script type="text/javascript">
    // window.onload = function (){
    //   var elementById = document.getElementById("btn01");
    //   elementById.onclick = function (){
    //     alert("hello,js")
    //   }
    // }

    $(function (){
      var $btn01 = $("#btn01");
      $btn01.click(function () {
        alert("hello,jquery")
      })
    })
  </script>
</head>
<body>
<button id="btn01">按钮1</button>
</body>
</html>
